﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="New.aspx.cs" Inherits="MVCClubSite.Web.Views.Albums.New" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<div class="contentblock">
    <h2>
        New Album</h2>
        
        <%= Html.ValidationSummary() %>
        
    <% using (Html.BeginForm("Create", "Albums", FormMethod.Post))
       { %>
    <table>
        <tr>
            <td align="right">
                <%= Html.Label("title", "Album Name:") %>
            </td>
            <td>
                <%= Html.TextBox("title", ViewData.Model.Album.Title) %>
                <%= Html.ValidationMessage("title") %>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <%= Html.CheckBox("isPrivate", ViewData.Model.Album.IsPrivate) %>
                <%= Html.Label("isPrivate", "Check to make this album private.")%>
            </td>
        </tr>
        <tr>
            <td>
                <%= Html.Label("description", "Description:") %>
            </td>
            <td>
                <%= Html.TextArea("description", ViewData.Model.Album.Description, 4, 30, null) %>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <input type="submit" value="Save" id="saveButton" />
                <%=Html.ActionLink("Cancel", "List", "Albums", new { }, null)%>
            </td>
        </tr>
    </table>
    <%} %>
    </div>
</asp:Content>
